package com.study.comp;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MyAdvice implements MethodInterceptor {
	
	final Logger logger = LoggerFactory.getLogger(this.getClass());

	public Object invoke(MethodInvocation invocation) throws Throwable {
		logger.debug("this is an advice!!!");
		invocation.proceed();
		return null;
	}
}
